var _n49;
var cc__extends = __extends;
var cc__decorate = __decorate;
var cc__importDefault = __importDefault;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var $zqcc_OverallSystem = require("zqcc_OverallSystem");
var $1$zqcc_pageBase = require("zqcc_pageBase");
var c = cc__importDefault($1$zqcc_pageBase);
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
cc__decorator.property;
var def_Zhuawawa = function (t) {
  function _ctor() {
    // null !== t && t.apply(this, arguments) || this
    var instance = (t !== null) ? t.apply(this, arguments) : this; // 调用函数 t，如果不存在则使用 this
    instance.pageName = "抓娃娃"; // 设置 pageName 属性
    return instance; // 返回修改后的实例
  }
  cc__extends(_ctor, t);
  _ctor.prototype.onLoad = function () { };
  _ctor.prototype.start = function () {
    const instance = this; // 使用const定义实例，替代var
    this.node.opacity = 0; // 初始化节点的不透明度

    // 定时调度一次函数处理动画和属性设置
    this.scheduleOnce(() => {
      instance.node.scale = 0.01; // 初始缩放设置

      // 创建并启动并行动画
      const tweenOpacity = cc.tween(instance.node).to(0.15, { opacity: 255 });
      const tweenScale = cc.tween(instance.node).to(0.2, { scale: 1 }, cc.easeBackOut());
      const tweenPosition = cc.tween(instance.node).by(0.2, { y: 0 });

      cc.tween(instance.node).parallel(tweenOpacity, tweenScale, tweenPosition).start();
    });

    // 更新娃娃机数据
    const wawajiData = $zqcc_OverallSystem.sers().userSrv.getWawajiData();
    wawajiData.select = 0; // 重置选择项
    $zqcc_OverallSystem.sers().userSrv.setWawajiData(wawajiData);
  };
  return cc__decorate([ccp_ccclass], _ctor);
}(c.default);
exports.default = def_Zhuawawa;